getOkHttpClient

abstract fun getOkHttpClient(): OkHttpClient

Returns an OkHttp client instance for making HTTP/HTTPS network calls. This client may be pre-configured with settings appropriate for the player environment (e.g., timeouts, caching policies).

Note: Callers should be mindful of not altering global configurations of the returned client if it's shared, or should clone it for custom needs (e.g., client.newBuilder().build()).

Return

A non-null OkHttpClient instance.